package com.behome.netty.netty_D.enums;


import com.behome.netty.common.ByteConventerKit;

public enum TerminalDType {
    START_BROADCAST((byte) 0x01, "开始播发"),
    STOP_BROADCAST((byte) 0x02, "停止播发"),
    HEART_BEAT((byte) 0x10, "终端心跳"),
    QUERY_STATUS((byte) 0x11, "终端状态查询"),
    SET_PARAM((byte) 0x12, "终端参数设置"),
    UPDATE_CERT((byte) 0x17, "证书授权"),
    BROADCAST_IPHONE_REQUEST((byte) 0x20, "IP话筒请求播发/停止"),
    BROADCAST_IPHONE_REPORT((byte) 0x21, "IP话筒请求播发/停止_回复");


    private byte value;
    private String name;

    public byte getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    private TerminalDType(byte value, String name) {
        this.value = value;
        this.name = name;
    }

    public String toString() {
        return "(指令名称:" + this.name + ",指令类型:" + ByteConventerKit.byteToHexStr(this.value, true, true) + ")";
    }

}

